//
//  BA_HomeNaviView.h
//  BaseProject
//
//  Created by 王洋 on 2020/7/6.
//  Copyright © 2020 王洋. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "HomeHeadModel.h"

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(unsigned long, HomeNaviActionType) {

    //
    HomeNaviActionType_changeCity,
    //
    HomeNaviActionType_search,
    
    HomeNaviActionType_message,

    HomeNaviActionType_qrCode,

};

@interface BA_HomeNaviView : UIView

@property (weak, nonatomic) IBOutlet UIImageView *bgImageView;


@property (weak, nonatomic) IBOutlet UIView *homeCityControl;

@property (weak, nonatomic) IBOutlet UIView *homeSearchControl;

@property (weak, nonatomic) IBOutlet UILabel *cityLab;

@property (weak, nonatomic) IBOutlet UILabel *searchLab;

@property (weak, nonatomic) IBOutlet UIView *noticeScrollView;

@property (weak, nonatomic) IBOutlet UIButton *qrCodeBtn;
@property (weak, nonatomic) IBOutlet UIButton *msgBtn;

@property (nonatomic, strong) HomeHeadModel *model;

@property (nonatomic, copy) void(^BA_HomeNaviViewBlock)(HomeNaviActionType type, NSInteger index);


- (void)fillWithAlpha:(CGFloat)alpha;

- (void)fillWithModel:(HomeHeadModel *)model;

@end

NS_ASSUME_NONNULL_END
